<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>二维码</title>
    <script type="text/javascript" src="js/qrcode.min.js"></script>
</head>
<body>
<div id="qrcode" ></div>
<script type="text/javascript">
    var qrcode = new QRCode(document.getElementById("qrcode"), {
        width : 200,
        height : 200
    });
    qrcode.makeCode("http://www.itheima.com");
</script>
</body>
</html>